package com.example.backend.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    Integer      id;
    String       name;
    String       password;
    Boolean      isadmin;

    public User(Integer id, String name, String password, Integer isadmin) {
        this(id, name, password, isadmin == 1);
    }
}
